package com.jason.kotlin.meta.architecture2.api

import com.jason.library.common.data.RetrofitManager

object ApiSource {

    /**
     * 玩Android 开放API 地址
     */
    const val BASE_WAN_ANDROID_URL = "https://www.wanandroid.com"


    /**
     * 针对玩Android 开放API获取
     *
     * @param service Class<T>
     * @return T
     */
    fun <T> getWanAndroidService(service: Class<T>): T =
        RetrofitManager.getService(service, BASE_WAN_ANDROID_URL)
}